/*
 * @Author: MSN
 * @Date: 2022-09-20 17:01:47
 * @LastEditTime: 2022-09-23 16:44:44
 * @LastEditors: MSN
 * @Description: 
 * @FilePath: \egoshop\src\main.js
 */
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'
import './assets/common/css/base.scss'
import './utils/event-bus'

Vue.config.productionTip = false

if(localStorage.getItem("token") && localStorage.getItem("egouser")){
  store.commit("LoginModule/setToken",localStorage.getItem("token"))
  store.commit("LoginModule/setUser",localStorage.getItem("egouser"))
}

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')